//
//  HMUserAccount.swift
//  Weibo
//
//  Created by ZhuDong on 16/5/23.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class HMUserAccount: NSObject {

    var access_token: String?
    var uid: String?
    var expires_in: NSTimeInterval = 0{
        didSet{
            expires_date = NSDate(timeIntervalSinceNow: expires_in)
            
        }
    }
    var expires_date: NSDate?
    var name: String?
    var avatar_large: String?
    
    init(dict: [String:AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        //
    }
}
